package com.ruoyi.system.domain.project.otherfile;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 其他档案对象 other_file
 * 
 * @author ruoyi
 * @date 2025-10-08
 */
public class OtherFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 档案名称 */
    @Excel(name = "档案名称")
    private String fileName;

    /** 档案时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "档案时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date fileTime;

    /** 获奖者 */
    @Excel(name = "获奖者")
    private String winner;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String attachmentUrl;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdDate;

    /** 记录更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedDate;

    /** 获奖者id */
    @Excel(name = "获奖者id")
    private Long winnerId;

    private Long deptId;

    private String currentRole;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }

    public void setFileTime(Date fileTime) 
    {
        this.fileTime = fileTime;
    }

    public Date getFileTime() 
    {
        return fileTime;
    }

    public void setWinner(String winner) 
    {
        this.winner = winner;
    }

    public String getWinner() 
    {
        return winner;
    }

    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }

    public void setCreatedDate(Date createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }

    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    public void setWinnerId(Long winnerId) 
    {
        this.winnerId = winnerId;
    }

    public Long getWinnerId() 
    {
        return winnerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileName", getFileName())
            .append("fileTime", getFileTime())
            .append("winner", getWinner())
            .append("attachmentUrl", getAttachmentUrl())
            .append("createdDate", getCreatedDate())
            .append("updatedDate", getUpdatedDate())
            .append("winnerId", getWinnerId())
            .toString();
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getCurrentRole() {
        return currentRole;
    }

    public void setCurrentRole(String currentRole) {
        this.currentRole = currentRole;
    }
}
